package com.central.common.feign

import com.central.common.constant.ServiceNameConstants
import com.central.common.feign.fallback.WxServiceFallbackFactory
import org.springframework.cloud.openfeign.FeignClient
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RequestParam

/**
 * @author  fly
 * @date  2021/5/26 18:31
 * @version 1.0
 */
@FeignClient(name = ServiceNameConstants.WX_SERVICE, fallbackFactory = WxServiceFallbackFactory::class, decode404 = true)
interface WxService {


    /**
     * 微信授权登录
     */
    @GetMapping("/wx/user/login/{code}")
    fun login(@PathVariable("code") code: String): String?

}